package com.jinlejia.erp.ui.house.prospect.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 房间信息
 * @author 王进 on 2019/1/10.
 */

public class RoomBean implements Parcelable {
    private String name; //名称
    private String square; //面积
    private String face;    //朝向
    private String windows; //窗户种类
    private String url;  //图片url
    private String tempId;

    public RoomBean(){

    }
    protected RoomBean(Parcel in) {
        name = in.readString();
        square = in.readString();
        face = in.readString();
        windows = in.readString();
        url = in.readString();
        tempId = in.readString();
    }

    public static final Creator<RoomBean> CREATOR = new Creator<RoomBean>() {
        @Override
        public RoomBean createFromParcel(Parcel in) {
            return new RoomBean(in);
        }

        @Override
        public RoomBean[] newArray(int size) {
            return new RoomBean[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSquare() {
        return square;
    }

    public void setSquare(String square) {
        this.square = square;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public String getWindows() {
        return windows;
    }

    public void setWindows(String windows) {
        this.windows = windows;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public String getTempId() {
        return tempId;
    }

    public void setTempId(String tempId) {
        this.tempId = tempId;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(square);
        dest.writeString(face);
        dest.writeString(windows);
        dest.writeString(url);
        dest.writeString(tempId);
    }
}
